package net.chrisrichardson.ec2deployer.core

import net.chrisrichardson.ec2deployer.testutil.AWSPropertiesUtil

class EC2ServerIntegrationTest extends GroovyTestCase {

    public void test() {
        AWSProperties awsProperties = AWSPropertiesUtil.makeAWSProperties()
        def ec2 = new EC2(awsProperties)

        ec2.startPolling()

        EC2Server server = ec2.newServers(1)[0]

        server.waitUntilRunning()

        server.stop()

    }
}